/*
 Navicat Premium Data Transfer

 Source Server         : ali-mysql
 Source Server Type    : MySQL
 Source Server Version : 80026
 Source Host           : 39.107.92.215:3306
 Source Schema         : mall-sys

 Target Server Type    : MySQL
 Target Server Version : 80026
 File Encoding         : 65001

 Date: 08/11/2021 15:30:36
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for tb_pay_log
-- ----------------------------
DROP TABLE IF EXISTS `tb_pay_log`;
CREATE TABLE `tb_pay_log` (
  `order_id` bigint NOT NULL COMMENT '订单号',
  `total_fee` bigint DEFAULT NULL COMMENT '支付金额（分）',
  `user_id` bigint DEFAULT NULL COMMENT '用户ID',
  `transaction_id` varchar(32) DEFAULT NULL COMMENT '微信交易号码',
  `status` tinyint(1) DEFAULT NULL COMMENT '交易状态，1 未支付, 2已支付, 3 已退款, 4 支付错误, 5 已关闭',
  `pay_type` tinyint(1) DEFAULT NULL COMMENT '支付方式，1 微信支付, 2 货到付款',
  `bank_type` varchar(16) DEFAULT NULL COMMENT '银行类型',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `pay_time` datetime DEFAULT NULL COMMENT '支付时间',
  `closed_time` datetime DEFAULT NULL COMMENT '关闭时间',
  `refund_time` datetime DEFAULT NULL COMMENT '退款时间',
  PRIMARY KEY (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Records of tb_pay_log
-- ----------------------------
BEGIN;
INSERT INTO `tb_pay_log` VALUES (1048180920340844544, 249900, 28, NULL, 0, 1, NULL, '2018-10-05 19:59:42', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048429835241787392, 249900, 28, NULL, 0, 1, NULL, '2018-10-06 12:28:47', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048791896744398848, 249900, 28, NULL, 0, 1, NULL, '2018-10-07 12:27:30', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048792468914573312, 249900, 28, NULL, 0, 1, NULL, '2018-10-07 12:29:45', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048833033576255488, 249900, 28, NULL, 0, 1, NULL, '2018-10-07 15:10:58', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048833402637258752, 249900, 28, NULL, 0, 1, NULL, '2018-10-07 15:12:25', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048834222883737600, 249900, 28, NULL, 0, 1, NULL, '2018-10-07 15:15:40', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048835021936398336, 249900, 28, NULL, 0, 1, NULL, '2018-10-07 15:18:51', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048856917990051840, 159900, 28, NULL, 0, 1, NULL, '2018-10-07 16:45:51', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048859076135620608, 159900, 28, NULL, 0, 1, NULL, '2018-10-07 16:54:26', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048859374887505920, 159900, 28, NULL, 0, 1, NULL, '2018-10-07 16:55:37', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048860418807828480, 159900, 28, NULL, 0, 1, NULL, '2018-10-07 16:59:46', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048860741450469376, 159900, 28, NULL, 0, 1, NULL, '2018-10-07 17:01:03', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048861260302651392, 134800, 28, NULL, 0, 1, NULL, '2018-10-07 17:03:07', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048861490276339712, 134800, 28, NULL, 0, 1, NULL, '2018-10-07 17:04:01', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048862621815672832, 134800, 28, NULL, 0, 1, NULL, '2018-10-07 17:08:31', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048864708028928000, 134800, 28, NULL, 0, 1, NULL, '2018-10-07 17:16:49', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048865366538850304, 219900, 28, NULL, 0, 1, NULL, '2018-10-07 17:19:26', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048865545040039936, 219900, 28, NULL, 0, 1, NULL, '2018-10-07 17:20:08', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048890723556003840, 419900, 28, NULL, 0, 1, NULL, '2018-10-07 19:00:12', NULL, NULL, NULL);
INSERT INTO `tb_pay_log` VALUES (1048892003028439040, 132800, 28, NULL, 0, 1, NULL, '2018-10-07 19:05:16', NULL, NULL, NULL);
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
